//
//  ChoosePhotoCollectionViewCell.m
//  BusineseStore
//
//  Created by TNG on 2017/12/22.
//  Copyright © 2017年 TNG. All rights reserved.
//

#import "ChoosePhotoCollectionViewCell.h"

@implementation ChoosePhotoCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatUI];
    }
    return self;
}

-(void)creatUI
{
    self.img = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
    self.img.contentMode = UIViewContentModeScaleAspectFill;
    self.img.clipsToBounds = YES;
    self.img.userInteractionEnabled = YES;
    [self.contentView addSubview:self.img];
    
    self.closeBtn = [[UIButton alloc] initWithFrame:CGRectMake(self.frame.size.width-20, 0, 20, 20)];
    [self.closeBtn setImage:[UIImage imageNamed:@"close@3x.png"] forState:UIControlStateNormal];
    [self.contentView addSubview:self.closeBtn];    
}

@end
